<?php use_stylesheet('items.css') ?>

<div id="items">
	<table class="items">
		<thead>
			<tr>
				<th>Name</th>
        <th>Level</th>
				<th>Gender</th>
        <th>Faction</th>
				<th>Type</th>
			</tr>
		</thead>

		<tfoot>
			<tr>
				<td>Name</td>
        <td>Level</td>
				<td>Gender</td>
        <td>Faction</td>
				<td>Type</td>
			</tr>
		</tfoot>

		<tbody>
			<?php foreach ($accessories as $i => $accessory): ?>
				<tr class="<?php echo  fmod($i, 2)?'even':'odd'?>">
					<td>
						<img src="/images/icons/<?php echo $accessory->getIconName() ?>.png" alt="<?php echo $accessory->getId() ?>_icon"/>
						<a href="<?php echo url_for('accessory_show', $accessory) ?>">
							<?php echo $accessory->getId() ?>
						</a>
					</td>
          <td><?php echo $accessory->getLevel() ?></td>
					<td><?php echo $accessory->getGenderPermitted() ?></td>
          <td><?php echo $accessory->getFactionId() ?></td>
					<td><?php echo $accessory->getItemType() ?></td>
				</tr>
				<?php endforeach; ?>
		</tbody>
	</table>
</div>